<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
[#include "/admin/include/admin_static.htm"]
[#import "/admin/include/admin_pagination.ftl" as p/]
    <script type="text/javascript">
        $(function () {
            $("#export").click(function () {
                $("#searchForm").attr('action', '${path}/admin/member/exportCustomerList.aspx').submit();
            });

            $("#query").click( function() {
                $("#searchForm").attr("action","${path}/admin/borrow/borrowList.aspx?status=6").submit();
            });
            layui.use(['form', 'layer','upload','layedit'], function () {
            [@flash_message /]
            });

        });



    </script>
</head>
<body>
<div class="main_admin_content">

    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>用户列表</legend>
    </fieldset>

    <form id="searchForm" method="post" action="${path}/admin/member/list.aspx">
        <table class="search_table_div">
            <tr>
                <td class="column">用户ID：</td>
                <td><input type="text"   name="userId" value="${userId }"/></td>
                <td class="column">用户名：</td>
                <td><input type="text" name="userName" value="${userName }"/>
                </td>
                <td class="column">Email：</td>
                <td><input type="text" name="email" value="${email }"/></td>
                <td class="column">手机号码：</td>
                <td><input type="text"
                            name="mobilePhone"
                           value="${mobilePhone }"/></td>
                <td class="column">日期：</td>
                <td>
                    <input type="text" onclick="WdatePicker();"
                           value="${begin_date }" name="begin_date" class="short"
                           readonly="readonly"/>
                    <i>至</i>
                    <input type="text" onclick="WdatePicker();" value="${end_date }"
                           name="end_date"
                           class="short" readonly="readonly"/>
                </td>

            </tr>
            <tr>
                <td class="column">推荐人ID：</td>
                <td><input type="text"
                            name="ru_userId"
                           value="${ru_userId }"/></td>
                <td class="column">推荐人用户名：</td>
                <td><input type="text" name="ru_userName"
                           value="${ru_userName }"/></td>
                <td class="column">推荐人手机号码：</td>
                <td><input type="text"
                            name="ru_mobilePhone"
                           value="${ru_mobilePhone }"/></td>
                <td class="column">所属客服：</td>
                <td><input type="text"
                           name="kefuname"
                           value="${kefuname }"/></td>
            </tr>
            </tr>
            <tr>
                <th colspan="100" class="btn_td">
                    <button id="export" class="layui-btn layui-btn-small"
                           style="float:left;width: 100px; heigth: 30px; line-height: 30px" >导出</button>
                    <input id="query"
                           type="button"  class="layui-btn " value="查询" />  <input
                        onclick="resent();" type="button"  class="layui-btn "
                        value="清空"/></th>
            </tr>
        </table>
    </form>

    <table class="layui-table">
        <colgroup>
            <col width="50">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
            <col width="80">
        </colgroup>
        <thead>
        <tr>
            <th>用户ID</th>
            <th>用户名</th>
            <th>真实姓名</th>
            <th>手机号</th>
            <th>邮箱</th>
            <th>推荐人ID</th>
            <th>推荐人用户名</th>
            <th>推荐人手机号</th>
            <th>注册时间</th>
            <th>所属客服</th>
            <th>操作</th>
        </tr>
        </thead>
    [#list users as user]
        <tr>
            <td>${(user.id)!''}</td>
            <td>${(user.user_name)!''}</td>
            <td>${(user.realName)!'' }</td>
            <td>${(user.member_phone)!'' }</td>
            <td>${(user.email)!'' }</td>
            <td>${(user.recommend_id)!'' }</td>
            <td>${(user.ru_user_name)!'' }</td>
            <td>${(user.ru_mobile)!'' }</td>
            <td>
            ${p2p_date_format(user.add_time  ,"yyyy-MM-dd HH:mm:ss")}
            </td>

            <td>${(user.kefuname)!''}</td>
            <td><input type="button"
                       onclick="window.location.href='${path}/admin/member/service.aspx?id=${user.id }'"
                       value="选择客服" class="layui-btn "/></td>
        </tr>
    [/#list]

    </table>

[@p.pager pager = page parameterMap={"kefuname":"${kefuname}","ru_mobilePhone":"${ru_mobilePhone}","mobilePhone":"${mobilePhone}","email":"${email}","ru_userId":"${ru_userId}","ru_userName":"${ru_userName}","userName":"${userName}","userId":"${userId }","begin_date":"${begin_date }","end_date":"${end_date }"}   url = "${path}/admin/member/list.aspx"/]

</div>
</body>
</html>